import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { MerchantVO } from "@/api/retail/merchant/types";
import { ProfitRatioVO } from "@/api/retail/profitRatio/types";

/**
 * 商家信息
 */
export const getInfo = (): AxiosPromise<MerchantVO> => {
  return request({
    url: '/merchant/info',
    method: 'get'
  });
};
/**
 * 商家收益配置
 * @param id
 */
export const getProfitConfig = (id?: string | number): AxiosPromise<ProfitRatioVO[]> => {
  return request({
    url: '/merchant/info/profitRatio/' + id,
    method: 'get'
  });
}
